/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: jse2204 - Format1
 * <p>Powered by webrx On 2022-08-29 17:20:42
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Format1 {
    public static void main(String[] args) {
        int i = 5;
        System.out.println(i);
        System.out.printf("%10d", i);
        for (int i1 = 0; i1 < 20; i1++) {
            System.out.printf("%5d%n", i1);
        }

        System.out.println(Math.PI);
        System.out.printf("%.1f%n", Math.PI);
        System.out.printf("%.2f%n", 98.06f);

        int n = 10;
        n += 2;
        n *= 2;
        System.out.println(++n);
    }
}
